package cn.edu.nju.software.rmi;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import CommonInformation.GoodsInformation;
import CommonInformation.PurchaseInformation;

public interface DetailSystemInterface extends Remote {
	//For A(purchasing agent) to inquire goods
	public ArrayList<GoodsInformation> inquireGoods(String goodName, 
			int minPrice, int maxPrice) throws RemoteException;
	
	//For A(purchasing agent) to submit request for purchasing goods
	public boolean submitRequest(int ID, int 
			goodsNum)throws RemoteException;
	
	//For A(purchasing agent) to confirm the purchase
	public PurchaseInformation confirmPurchase(int goodsID, 
			String time, String address, String type, 
			int num) throws RemoteException;
}
